#-*- coding:utf-8 -*-
#
#下面的布尔值为False
#None False，为零的数，0,0.0，"" (空字符串)，[] (空列表)，() (空元组)，{} (空字典)
#整数和字符串会被缓存，（-1,100）之间的整数
import types
s = 'string'
s1 = 'string2'
s2 = 'string'
s is s2 #True
s is s1 #False判断两个变量是否指向相同的对象

foostr = 'abcde'
print foostr[::-1]
print foostr[::-2]
foolist = [123,'xba',342.23,'abc']
print foolist[::-1]

num = 1
if type(num) is types.IntType:
    print 'yes'
